package com.ruoyi.robot.domain;

import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 机器人对话历史记录对象 user_chat_data
 * 
 * @author ruoyi
 * @date 2024-10-22
 */
public class UserChatData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 发送人 */
    @Excel(name = "发送人")
    private String name;

    /** 发送人ID */
    @Excel(name = "发送人ID")
    private String nameId;

    /** 接收人 */
    @Excel(name = "接收人")
    private String toName;

    /** 接收人ID */
    @Excel(name = "接收人ID")
    private String toId;

    /** 对话标志 */
    @Excel(name = "对话标志")
    private String flag;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String msgtype;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String content;

    /** 回复内容 */
    @Excel(name = "回复内容")
    private String reply;

    /** 文件名 */
    @Excel(name = "文件名")
    private String robotfile;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String userfile;

    /** 中转路径 */
    @Excel(name = "中转路径")
    private String position;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String robotfilename;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String userfilename;

    private Date createTime;

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNameId(String nameId) 
    {
        this.nameId = nameId;
    }

    public String getNameId() 
    {
        return nameId;
    }
    public void setToName(String toName) 
    {
        this.toName = toName;
    }

    public String getToName() 
    {
        return toName;
    }
    public void setToId(String toId) 
    {
        this.toId = toId;
    }

    public String getToId() 
    {
        return toId;
    }
    public void setFlag(String flag) 
    {
        this.flag = flag;
    }

    public String getFlag() 
    {
        return flag;
    }
    public void setMsgtype(String msgtype) 
    {
        this.msgtype = msgtype;
    }

    public String getMsgtype() 
    {
        return msgtype;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setReply(String reply) 
    {
        this.reply = reply;
    }

    public String getReply() 
    {
        return reply;
    }
    public void setRobotfile(String robotfile) 
    {
        this.robotfile = robotfile;
    }

    public String getRobotfile() 
    {
        return robotfile;
    }
    public void setUserfile(String userfile) 
    {
        this.userfile = userfile;
    }

    public String getUserfile() 
    {
        return userfile;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setRobotfilename(String robotfilename) 
    {
        this.robotfilename = robotfilename;
    }

    public String getRobotfilename() 
    {
        return robotfilename;
    }
    public void setUserfilename(String userfilename) 
    {
        this.userfilename = userfilename;
    }

    public String getUserfilename() 
    {
        return userfilename;
    }

    public Date getCreateTime() {return createTime;}
    public void setCreateTime(Date createTime) {this.createTime = createTime;}

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("nameId", getNameId())
            .append("toName", getToName())
            .append("toId", getToId())
            .append("flag", getFlag())
            .append("msgtype", getMsgtype())
            .append("content", getContent())
            .append("reply", getReply())
            .append("robotfile", getRobotfile())
            .append("userfile", getUserfile())
            .append("position", getPosition())
            .append("robotfilename", getRobotfilename())
            .append("userfilename", getUserfilename())
            .toString();
    }
}
